<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/inc/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="decorator" content="main" />
<script type="text/javascript">
$(document).ready(function() {
	$("#tt").tree({
	url : '${ctx}/column/columnview.do?method=load',
	onClick : function(node) {
			var url='${ctx}/column/columnview.do?method=initForm&columnid='
			+ node.id;
			window.location.href = url;
			$('#ff').form('load',{
				
			});
			$("input[name='id']").val(node.id);
			$("input[name='name']").val(node.text);
		}
	});
});
</script>
<title>栏目修改</title>
</head>
<body>
	<ul class="breadcrumbs">
		<li><a href="${ctx}/login/LoginIndexRequestServlet.do"><i class="iconfa-home"></i></a> <span
			class="separator"></span></li>
		<li><a href="${ctx}/column/columnadmin.do">栏目管理</a> <span class="separator"></span></li>
		<li>栏目修改</li>
	</ul>
	<div>
		<div class="maincontent">
			<div class="maincontentinner">
				<div class="row-fluid">
					<div class="span3">
						<div class="widget">
							<h4 class="widgettitle">栏目列表</h4>
							<div class="widgetcontent">
								<ul id="tt"></ul>
							</div>
						</div>
					</div>

					<div class="span9">
						<div class="widget">
							<h4 class="widgettitle">栏目编辑</h4>
							<div class="widgetcontent">
								<form id="ff" action="${ctx}/column/columnadmin.do">
									<input type="hidden" name="method"
										value="${columninfo.id==0?'insert':'update'}"></input>
									<input type="hidden" class="input-large" type="text" name="id"
										value="${columninfo.id}"></input>
									<p style="padding-left:260px">
										<label>栏目名称 :</label> <input class="input-large" type="text"
											name="name" data-options="required:true"
											value="${columninfo.name }"></input>
									</p>
									<p style="padding-left:260px">
										<label>栏目简称:</label> <input class="input-large" type="text"
											name="alias" data-options="required:true"
											value="${columninfo.alias }"></input>
									</p>
									<p style="padding-left:260px">
										<label>栏目类型:</label> <input class="input-large" type="text"
											name="type" data-options="required:true"
											value="${columninfo.type }"></input>
									</p>
									<p style="padding-left:260px">
										<label>栏目描述:</label> <input class="input-large" type="text"
											name="desciption" data-options="required:true"
											value="${columninfo.desciption }"></input>
									</p>
									<p style="padding-left:260px">
										<label>栏目图标:</label> <input class="input-large" type="text"
											name="logo" data-options="required:true"
											value="${columninfo.logo }"></input>
									</p>
									<p style="padding-left:260px">
										<label>栏目关键字:</label> <input class="input-large" type="text"
											name="kw" data-options="required:true"
											value="${columninfo.kw }"></input>
									</p>
									<p style="padding-left:260px">
										<label>SEO描述:</label> <input class="input-large" type="text"
											name="seodesc" data-options="required:true"
											value="${columninfo.seodesc }"></input>
									</p>
									<p style="padding-left:260px">
										<label>SEO题目:</label> <input class="input-large" type="text"
											name="seotitle" data-options="required:true"
											value="${columninfo.seotitle }"></input>
									</p>
									<p style="padding-left:260px">
										<label>状态:</label>
										<c:if test="${columninfo.status=='Y'}">
											<select class="easyui-combobox" name="status" value="Y" style="height:30px">
												<option value="Y" selected="selected">启用</option>
												<option value="N">禁用</option>
											</select>
										</c:if>
										<c:if test="${columninfo.status!='Y'}">
											<select class="easyui-combobox" name="status" value="N" style="height:30px">
												<option value="Y">启用</option>
												<option value="N" selected="selected">禁用</option>
											</select>
										</c:if>
									</p>
									<p class="stdformbutton" style="padding-left:260px">
                                    	<input type="submit" class="btn btn-primary" value="提交"></input>
										<input type="reset" class="btn" value="重置"></input>
									</p>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	</div>
</body>
</html>